package com.countryside.mapper;

import com.countryside.pojo.WorkCategory;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WorkCategoryMapper {
    /**
     * 获取一级标签或同类标签
     * @param fatherId
     * @return
     */
    List<WorkCategory> getCategory(@Param("fatherId") String fatherId);
    /**
     * 获取一个分类信息
     * @param id
     * @return
     */
    WorkCategory getACategory(@Param("id") String id);

    /**
     * 获取全部工作种类
     * @return
     */
    List<WorkCategory> getAllWorkCategory();

}
